package com.hisky.auth.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hisky.auth.service.AdminService;
import com.hisky.auth.vo.Admin;

@Controller
@RequestMapping("admin")
public class AdminController {
	@Autowired
	AdminService adminService;

	@RequestMapping(value = "login", method = { RequestMethod.POST })
	@ResponseBody
	public boolean login(Admin admin) {
		admin = adminService.get(admin);
		if (admin == null)
			return false;
		return true;
	}
}
